<template>
  <div>
    <span>用户名 </span><input type="text" name="username" /><br />
    <span style="margin-right: 15px">密码 </span
    ><input type="text" name="password" />

    <div style="margin-top: 20px">
      <button style="margin-right: 20px" >登录</button>
      <button @click="add">注册</button>
    </div>
  </div>
</template>
 
<script>
export default {
  name: '', 
  components: {},
  props: {},
  data() {
    return {}
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    add(){
      this.$router.push({
        // path:'/register',
        name:'Register',
        // query:{
        //   username:'harry'
        // },
        params:{
          username:'harry'
        }
      })
      // this.$router.push('/register/despot')
    }
  }
}
</script>

<style scoped>
</style>